
using Admin2505.Domain.Entityes;

namespace Admin2505.Domain.Entityes.App;


public class AppRolePermission: EntityBase{
    public Guid RoleId {get;private set ;}
    public AppRole Role {get;private set;}=null!;

    public Guid PermissionId{get;private set;}

    public Apppermission Permission {get; private set;}=null!;

        // 无参数构造函数（EF Core 需要）
    protected AppRolePermission() { }

    public AppRolePermission (AppRole role ,Apppermission permission){
        Role = role;
        RoleId= role.Id;
        Permission= permission;
        PermissionId = permission.Id; 
    } 

    
}